package classicalSATeaching;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;

public class ioUtils {

    public static String txtInput(String fileName) {
        BufferedReader inputFile = null;
        StringBuilder str=new StringBuilder();
//        ArrayList<String> lineTxt = new ArrayList<String>();
        try {
            inputFile = new BufferedReader(new FileReader(fileName));
        } catch (Exception e) {
            e.printStackTrace();
        }
        String line;
        try {
            while ((line = inputFile.readLine()) != null) {
//                lineTxt.add(line);
                str.append(line+"\n");
            }
        } catch (IOException e) {
            e.printStackTrace();
        }

        return str.toString();
    }

}



